﻿
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MyFoodTracker.aspx.cs" Inherits="CSC440TeamOne.MyNutrition.Views.MyFoodTracker"
    Title="MyFoodTracker" MasterPageFile="~/Shared/DefaultMaster.master" %>
<asp:Content ID="content" ContentPlaceHolderID="DefaultContent" Runat="Server">
		<h1>My Food Tracker</h1>
        <link href="../App_Themes/Default/MyRecipe.css" rel="stylesheet" type="text/css" />
         <div class="left">
        <div class="recSearch">
            <strong>Recipe Search:</strong> <asp:TextBox ID="txtSearch" runat="server" /><br />
            <div class="textLeft">-or-</div>
            <strong>Enter Ingredients:</strong> <asp:TextBox ID="txtIngredient" runat="server" /><br />
            <asp:Button ID="btnSearch" Text="Search" runat="server" onclick="btnSearch_Click" />
            <div class="textLeft">
                Results:<br />
                <asp:Repeater ID="repResults" runat="server" onitemcommand="repResults_ItemCommand" onitemdatabound="repResults_ItemDataBound">
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" /><br />
                    </ItemTemplate>
                </asp:Repeater>
            </div>
        </div>
        </div>
        <br />
        <div class="left">
            <div class = "recSearch">
            <strong>Added Recipes:</strong> <asp:TextBox ID="quantizeRecipe" runat="server" />servings<br /> <asp:Button ID="btnSubmit" Text="Submit" runat="server" onclick="btnSubmit_Click" />
            <asp:Repeater ID="repAdd" runat="server" OnItemCommand="repAdd_ItemCommand" onitemdatabound="repAdd_ItemDataBound">
            </asp:Repeater>
            </div>
        </div>
            <div class="recipeViewer">
            <strong>Ingredients:</strong>
        <h2 runat="server" id="name"></h2>
        <asp:Image ID="Image1" style="float:right;" runat="server" />
        <asp:Repeater ID="repIngredients" runat="server">
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%#Container.DataItem.ToString() %>' /><br />
            </ItemTemplate>
        </asp:Repeater>
        </div>
</asp:Content>
